<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes x{
             0%{
                 transform: rotate(0deg);
             }
             25%{
                transform:rotate(180deg);
                background-color: rgb(8, 179, 122);
             }
             50%{
                transform:rotate(180deg);
                 background-color: rgb(45, 8, 179);
             }
             75%{
                transform:rotate(180deg);
                 background-color: rgb(179, 8, 113);
             }
             100%{
                 transform:rotate(360deg);
                 background-color: red;
             }
        }
        div{
            width: 200px;
            height: 200px;
            background-color: skyblue;
            border-radius: 50%;
            /* animation-name: x;
            animation-duration: 5s; */
            animation: x linear infinite 5s;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>